<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>汽车4S店客服管理系统用户个人信息页面</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="汽车,4S店,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="CSS/reMainPage.css"> 
	<link rel="stylesheet" type="text/css" href="CSS/mainUser.css"> 
	<script type="text/javascript"  src="JS/jquery-3.1.0.js"></script>
	<script type="text/javascript"  src="JS/reMainPage.js"></script>
	<script type="text/javascript"  src="JS/mainUser.js"></script>
  </head>
  
  <body>
    <% 
    	request.setCharacterEncoding("utf-8");
    	response.setHeader("Content-type", "text/html;charset=UTF-8");
    	response.setCharacterEncoding("UTF-8"); 
    %>
    <%
    	String name=(String)session.getAttribute("name"); 
    	String ident=(String)session.getAttribute("ident");
    	if(name==null||name==""||ident==null||ident=="")
    	{
    		response.sendRedirect("index.jsp");
    	}
     %>
    <div class="allbody">
    	<div class="headbody">
    		<div class="maintitle">汽车4S店客服管理系统</div>
    	</div>
    	<div class="mylist" id="mylist">
    		<ul class="prolist">
    			<li><a href="userList">车型信息</a></li>
    			<li><a href="user">个人信息</a></li>
    			<li>
    				<c:if test="${ident!='职工'&&ident!='管理员'}">
    					车型保养维修
    				</c:if>
    			</li>
    			<li>
    				<c:if test="${ident=='用户'}">
    					客服
    				</c:if>
    			</li>
    			<li>
    				<c:if test="${ident!='职工'&&ident!='管理员'}">
    					个人订单
    				</c:if>
    			</li>
    			<c:if test="${ident=='职工'||ident=='管理员'}">
    				<li><a href="pendTask">待处理任务</a></li>
    				<li>增加车型</li>
    				<li>车型试驾订购</li>
    				<li>车型维修保养</li>
    				<li>订单处理</li>
    				<li>总订单</li>
    			</c:if>
    			<c:if test="${ident=='管理员'}">
    				<li>职工信息</li>
    				<li>用户信息</li>
    			</c:if>
    		</ul>
    	</div>
    	<div class="carmain">
    		<div class="username">
    			欢迎登陆,<%=name%><%=ident%>
    		</div>
    		<div class="closelogin">
    			<a href="javascript:void(0);">退出登陆</a>
    		</div>
    		<div class="showMyMess">
    			<c:if test="${sessionScope.name!=null}">
    				<c:if test="${sessionScope.ident=='用户'}">
		    			<div class="hidden_userId">用户编号：<input type="text" value="${sessionScope.userMyself.USER_ID}"></div>
		    			<div class="hidden_userIdent">用户身份：<input type="text" value="${sessionScope.ident}"></div>
		    			<div class="user_name">用户昵称：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.USER_NAME}"></div>
		    			<div class="true_name">用户真实姓名：<input type="text" value="${sessionScope.userMyself.TRUE_NAME}"></div>
		    			<div class="user_ident">用户身份证号：<input type="text" value="${sessionScope.userMyself.USER_IDENT}"></div>
		    			<div class="user_qq">用户QQ号：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.USER_QQ}"></div>
		    			<div class="user_weixin">用户微信号：&emsp;<input type="text" value="${sessionScope.userMyself.USER_WEIXIN}"></div>
		    			<div class="user_phone">用户手机号：&emsp;<input type="text" value="${sessionScope.userMyself.USER_PHONE}"></div>
		    			<div class="user_sex">用户性别：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.USER_SEX}"></div>
		    			<div class="user_mail">用户邮箱：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.USER_MAIL}"></div>
		    			<div class="user_address">用户地址：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.USER_ADDRESS}"></div>
		    			<div class="user_password">用户密码：&emsp;&emsp;<input type="password"></div>
    				</c:if>
    				<c:if test="${sessionScope.ident!='用户'}">
		    			<div class="hidden_userId">用户编号：<input type="text" value="${sessionScope.userMyself.WORKER_ID}"></div>
		    			<div class="hidden_userIdent">用户身份：<input type="text" value="${sessionScope.ident}"></div>
		    			<div class="user_name">用户昵称：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.WORKER_NAME}"></div>
		    			<div class="true_name">用户真实姓名：<input type="text" value="${sessionScope.userMyself.TRUE_NAME}"></div>
		    			<div class="user_ident">用户身份证号：<input type="text" value="${sessionScope.userMyself.WORKER_IDENT}"></div>
		    			<div class="user_qq">用户QQ号：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.WORKER_QQ}"></div>
		    			<div class="user_weixin">用户微信号：&emsp;<input type="text" value="${sessionScope.userMyself.WORKER_WEIXIN}"></div>
		    			<div class="user_phone">用户手机号：&emsp;<input type="text" value="${sessionScope.userMyself.WORKER_PHONE}"></div>
		    			<div class="user_sex">用户性别：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.WORKER_SEX}"></div>
		    			<div class="user_mail">用户邮箱：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.WORKER_MAIL}"></div>
		    			<div class="user_address">用户地址：&emsp;&emsp;<input type="text" value="${sessionScope.userMyself.WORKER_ADDRESS}"></div>
    					<div class="user_password">用户密码：&emsp;&emsp;<input type="password"></div>
    				</c:if>
    			</c:if>
    			<div class="anniu"><input type="button" value="修改"></div>
    		</div>
    	</div>
    </div>
  </body>
</html>
